﻿using System;
using NUnit.Framework;
using Smartkernel;
using Smartkernel.Log;

namespace Smartkernel.NUnitTest.Log
{
    [Category("Log")]
    [TestFixture]
    public class SmartEventLogerTest
    {
        [Test]
        public void Test()
        {
            //【01】写入日志测试（涉及方法：Write）
            SmartEventLoger.Write("数据库发生了异常！" + DateTime.Now.ToString());
            SmartEventLoger.Write("数据库发生了异常！" + DateTime.Now.ToString(), SmartLogLevelType.Terribly);
            SmartEventLoger.Write("数据库发生了异常！" + DateTime.Now.ToString(), "Smartkernel.Error");
            SmartEventLoger.Write("数据库发生了异常！" + DateTime.Now.ToString(), "Smartkernel.Error", SmartLogLevelType.Ignore);
        }
    }
}
